package com.ebao.po.user;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ebao.constants.TagType;

/**
 * @desc 标签
 * 
 * 标签种类：大夫、用户、问题、博客
 * 
 * @author snow
 * @date 2012-6-29
 */
@Entity
@Table(name = "T_Tag")
public class TTag implements Serializable {

	private static final long serialVersionUID = 3075248568966621504L;
	
	private Long id;
	private String name;			// 标签名称
	private TagType tagType; 		// 标签类型
	private String refer;			// 标签引用的对象Id,问题、博客的Id需要进行转换
	private String createDate;		// 创建日期
	
	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public TagType getTagType() {
		return tagType;
	}

	public void setTagType(TagType tagType) {
		this.tagType = tagType;
	}

	public String getRefer() {
		return refer;
	}

	public void setRefer(String refer) {
		this.refer = refer;
	}

	@Column(length = 19)
	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	
}
